﻿
using System;

namespace S3.WMDSLEditor.Common
{
    public class ComboBoxItem : IComparable<ComboBoxItem>
    {
        public ComboBoxItem()
        {
        }

        public ComboBoxItem(string id, string text)
        {
            Id = id;
            _text = text;
        }

        public string Id { get; set; }

        private string _text = string.Empty;
        public string Text
        {
            get
            {
                return _text;
            }
            set
            {
                _text = value;
            }
        }

        public int CompareTo(ComboBoxItem other)
        {
            return _text.CompareTo(other.Text);
        }
    }
}
